
package com.geelaro.register.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.geelaro.register.domain.entity.Employee;


public interface EmployeeRepository extends JpaRepository<Employee, Integer>, JpaSpecificationExecutor<Employee> {


	@Query(name = "getEmployeeById", nativeQuery = true, value = "select * from employee where id=?")
	Employee getEmployeeById(Integer id);

	Employee findEmployeeById(Integer id);

}
